<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 字面量创建一个数组
      var aggArr = [12, 13, 14, 15]
      var nameArr = ['cxm', 'zll']
      var stuArr = [
        { name: 'cxm', age: 23 },
        { name: 'zll', age: 22 },
      ]
      console.log(aggArr, nameArr, stuArr)

      // 内置构造函数
      var arr1 = new Array(1, 2, 3, 4)
      var arr2 = new Array(10) // empty x 10
      console.log(arr1, arr2)
    </script>
  </body>
</html>
